<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta charset="utf-8" />
    <title>客户关系管理系统</title>
    <meta name="description" content="客户关系管理" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" href="__PUBLIC__/css/app.v2.css" type="text/css" />
    <script type="text/javascript" src="__PUBLIC__/js/app.v2.js"></script>

    <script type="text/javascript" src="__PUBLIC__/validator/site.js"></script>
    <script type="text/javascript" src="__PUBLIC__/validator/jnotify.jquery.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/validator/jnotify.jquery.css" type="text/css"/>
    {block name="header"}
    {/block}
</head>
<body>
<section class="vbox">
    <header class="bg-dark dk header navbar navbar-fixed-top-xs">
        <div class="navbar-header aside-md"> <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav"> <i class="fa fa-bars"></i> </a> <a href="#" class="navbar-brand" data-toggle="fullscreen"><img src="__PUBLIC__/images/logo.png" class="m-r-sm">半个魔法</a> <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user"> <i class="fa fa-cog"></i> </a> </div>
        <ul class="nav navbar-nav hidden-xs">
            <li class="dropdown"> <a href="#" class="dropdown-toggle" onclick="get_info()" data-toggle="dropdown"> <i class="fa fa-building-o"></i> <span class="font-bold"></span> </a>
                <section class="dropdown-menu aside-xl on animated fadeInLeft no-borders lt">
                    <div class="wrapper lter m-t-n-xs">
                        <div class="clear"> <a href="#"><span class="text-white font-bold">{$Think.session.master.name}</a></span> <small class="block">系统管理员</small></div>
                    </div>
                    <div class="row m-l-none m-r-none m-b-n-xs text-center">
                        <div class="col-xs-4">
                            <div class="padder-v"> <span id="money1" class="m-b-xs h4 block text-white">0</span><small class="text-muted">总报单币</small> </div>
                        </div>
                        <div class="col-xs-4">
                            <div class="padder-v"> <span id="money2" class="m-b-xs h4 block text-white">0</span><small class="text-muted">总奖金</small> </div>
                        </div>
                        <div class="col-xs-4">
                            <div class="padder-v"> <span id="money3" class="m-b-xs h4 block text-white">0</span><small class="text-muted">总复消</small> </div>
                        </div>
                    </div>
                </section>
            </li>

        </ul>
        <ul class="nav navbar-nav navbar-right hidden-xs nav-user">
            <li class="dropdown hidden-xs"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa-search"></i></a>
                <section class="dropdown-menu aside-xl animated fadeInUp">
                    <section class="panel bg-white">
                        <form role="search">
                            <div class="form-group wrapper m-b-none">
                                <div class="input-group">
                                    <input type="text" class="form-control" placeholder="Search">
                                    <span class="input-group-btn">
                  <button type="submit" class="btn btn-info btn-icon"><i class="fa fa-search"></i></button>
                  </span> </div>
                            </div>
                        </form>
                    </section>
                </section>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{$Think.session.master.name} <b class="caret"></b> </a>
                <ul class="dropdown-menu animated fadeInRight">
                    <span class="arrow top"></span>
                    <li> <a href="/index/operatorpassword">修改密码</a> </li>
                    <li> <a href="/index/noticeedit">发布公告</a> </li>
                    <li class="divider"></li>
                    <li> <a href="/index/logout" >安全退出</a> </li>
                </ul>
            </li>
        </ul>
    </header>
    <section>
        <section class="hbox stretch"> <!-- .aside -->
            <aside class="bg-dark lter aside-md hidden-print" id="nav">
                <section class="vbox">
                    <header class="header lter text-center clearfix">
                    </header>
                    <section class="w-f scrollable">
                        <div id="menu_nav" class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333"> <!-- nav -->
                            <nav class="nav-primary hidden-xs">
                                <ul class="nav">
                                    <li levp="1"> <a href="#" > <i class="fa fa-user icon"> <b class="bg-danger"></b> </i> <span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span> <span>客户管理</span> </a>
                                        <ul class="nav lt">
                                            <li > <a href="{:url('user/useradd')}"> <i class="fa fa-angle-right"></i> <span>会员注册</span> </a> </li>
                                            <li > <a href="{:url('user/userlist')}"> <i class="fa fa-angle-right"></i> <span>会员列表</span> </a> </li>
                                            <li > <a href="/user/userlist2"> <i class="fa fa-angle-right"></i> <span>电话客户</span> </a> </li>
                                            <li > <a href="/user/baidumap"> <i class="fa fa-angle-right"></i> <span>百度导入</span> </a> </li>
                                        </ul>
                                    </li>
                                    <li levp="1"> <a href="#layout"> <i class="fa fa-barcode icon"> <b class="bg-warning"></b> </i> <span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span> <span>产品管理</span> </a>
                                        <ul class="nav lt">
                                            <li > <a href="/goods/goods"> <i class="fa fa-angle-right"></i> <span>商品编辑</span> </a> </li>
                                            <li > <a href="/goods/goodslist" > <i class="fa fa-angle-right"></i> <span>商品列表</span> </a> </li>
                                        </ul>
                                    </li>
                                    <li levp="1"> <a href="#uikit" > <i class="fa  fa-truck icon"> <b class="bg-success"></b> </i> <span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span> <span>订单管理</span> </a>
                                        <ul class="nav lt">
                                            <li > <a href="/order/order" > <i class="fa fa-angle-right"></i> <span>新增订单</span> </a> </li>
                                            <li > <a href="/order/orderlist" > <i class="fa fa-angle-right"></i> <span>订单列表</span> </a> </li>
                                            <li > <a href="/money/zh1tozh1" > <i class="fa fa-angle-right"></i> <span>新增退货</span> </a> </li>
                                            <li > <a href="/money/zh1tozh3" > <i class="fa fa-angle-right"></i> <span>退货列表</span> </a> </li>
                                        </ul>
                                    </li>
                                    <!--<li levp="1"> <a href="#" > <i class="fa fa-dollar icon"> <b class="bg-primary"></b> </i> <span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span> <span>奖金管理</span> </a>-->
                                        <!--<ul class="nav lt">-->
                                            <!--<li > <a href="/money/zh2list" > <i class="fa fa-angle-right"></i> <span>奖金明细</span> </a> </li>-->
                                            <!--<li > <a href="/money/zh2add" > <i class="fa fa-angle-right"></i> <span>奖金充值</span> </a> </li>-->
                                            <!--<li > <a href="/money/zh2tozh1" > <i class="fa fa-angle-right"></i> <span>奖金转报单币</span> </a> </li>-->
                                            <!--<li > <a href="/money/zh2tozh3" > <i class="fa fa-angle-right"></i> <span>奖金转复消</span> </a> </li>-->
                                            <!--<li > <a href="/money/tixianlist" > <i class="fa fa-angle-right"></i> <span>提现管理</span> </a> </li>-->
                                        <!--</ul>-->
                                    <!--</li>-->
                                    <!--<li levp="1"> <a href="#" > <i class="fa fa-eur icon"> <b class="bg-primary dker"></b> </i> <span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span> <span>复消管理</span> </a>-->
                                        <!--<ul class="nav lt">-->
                                            <!--<li > <a href="/money/zh3list" > <i class="fa fa-angle-right"></i> <span>复消明细</span> </a> </li>-->
                                            <!--<li > <a href="/money/zh3add" > <i class="fa fa-angle-right"></i> <span>复消充值</span> </a> </li>-->
                                            <!--<li > <a href="/money/zh3tozh3" > <i class="fa fa-angle-right"></i> <span>复消转账</span> </a> </li>-->
                                        <!--</ul>-->
                                    <!--</li>-->
                                    <!--<li levp="1"> <a href="#" > <i class="fa fa-money icon"> <b class="bg-info"></b> </i> <span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span> <span>分红管理</span> </a>-->
                                        <!--<ul class="nav lt">-->
                                            <!--<li > <a href="/money/fenhong" > <i class="fa fa-angle-right"></i> <span>本期分红</span> </a> </li>-->
                                            <!--<li > <a href="/money/fenhonglist" > <i class="fa fa-angle-right"></i> <span>分红明细</span> </a> </li>-->
                                        <!--</ul>-->
                                    <!--</li>-->
                                    <!--<li levp="1"> <a href="#" > <i class="fa fa-cogs icon"> <b class="bg-warning dker"></b> </i> <span class="pull-right"> <i class="fa fa-angle-down text"></i> <i class="fa fa-angle-up text-active"></i> </span> <span>系统设置</span> </a>-->
                                        <!--<ul class="nav lt">-->
                                            <!--<li > <a href="/index/operatorpassword" > <i class="fa fa-angle-right"></i> <span>我的密码</span> </a> </li>-->
                                            <!--<li > <a href="/index/logout" > <i class="fa fa-angle-right"></i> <span>安全退出</span> </a> </li>-->
                                        <!--</ul>-->
                                    <!--</li>-->
                                </ul>
                            </nav>
                        </div>
                    </section>
                    <footer class="footer lt hidden-xs b-t b-dark">
                        <a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-dark btn-icon"> <i class="fa fa-angle-left text"></i> <i class="fa fa-angle-right text-active"></i> </a>
                    </footer>
                </section>
            </aside>
            <section id="content">
                <section class="vbox">
                    {block name="main"}
                    {/block}
                </section>
                <div class="modal fade" id="modal1">
                </div>
            </section>
        </section>
    </section>
</section>

<script>
    $(document).ready(function () {
        var url="{$Request.baseUrl}";
        $("#menu_nav a").each(function () {
            if($(this).attr("href")==url){
                obj=$(this).parent();
                obj.attr('class','active');
                if(obj.attr('levp')!=1){
                    obj=obj.parent().parent();
                    obj.attr('class','active');
                }
            }
        });
    });
    function get_info() {
        $.ajax({
            type: "POST",
            url:"/index/getinfo",
            success: function (data) {
                $('#money1').html(data.zh1);
                $('#money2').html(data.zh2);
                $('#money3').html(data.zh3);
            }
        });
    }
    /**
     * 模窗打开
     */
    function modal1_open() {
        $('#modal1').css('display','block');
        $('#modal1').attr('class','modal fade in');
        $('.modal-backdrop').show();
    }
    /**
     * 模窗关闭
     */
    function modal1_close() {
        $('#modal1').attr('class','modal fade');
        $('#modal1').attr('aria-hidden',true);
        $('#modal1').css('display','none');
        $("#modal1").html('');
        $('.modal-backdrop').hide();
        $('body').attr('class','');
    }
</script>
{block name="footer"}
{/block}
</body>
</html>